echo "=====前端文件拷贝开始=====v$1"
cp -rfb ../ruoyi-ui/dist/* ./docker/frontend
echo "=====前端文件拷贝完成=====v$1"
echo "=====移除历史镜像=====v$1"
docker rmi $(docker images -a | grep "zeroup-ry-admin" | awk '{print $1":"$2}')
echo "=====开始打包=====$1"
docker build -t 192.168.0.126:8033/kong/zeroup-ry-admin:$1 .
docker login http://192.168.0.126:8033 -u $2 -p $3
docker push 192.168.0.126:8033/lab5/zerone-center:$1
